package dd.prog2.musterExercises.ws12set07_tanks;

import java.util.Collections;
import java.util.Iterator;
import java.util.List;

/** Super class for all basic tanks (tanks without parts). */
public abstract class BasicTank implements Tank {

	@Override
	public Iterator<Tank> iterator() {
		List<Tank> l = Collections.emptyList();
		return l.iterator();
	}
	
	@Override
	public BasicTank clone() {
		BasicTank result = null;
		try {
			result = (BasicTank) super.clone();
		} catch (CloneNotSupportedException e) {
			// will never happen because Tank extends Cloneable
			e.printStackTrace(); 
		}
		return result;
	}
}
